<foreach name="ret" item="v" key="k">
    <section class="am-panel am-panel-default am-u-sm-12">
        <div class="section-text am-panel-bd am-u-sm-12 am-u-lg-4">
            <{$v.examtitle}>
        </div>
        <div class="am-panel-bd am-u-sm-12 am-u-lg-6 section-font-body-size section-text">
            <div class="am-u-sm-12 am-u-md-4 padding-left-opx">时长：<span><{$v['duration']/60}>分钟</span> </div>
            <div class="am-u-sm-12 am-u-md-8 section-text padding-left-opx">截止时间：<span><if condition="$v.finishtime neq 0"><{$v.finishtime|date="Y-m-d H:i:s",###}> <else />无限制</if></span></div>

        </div>
        <div class="am-show-lg-only section-text am-panel-bd am-u-md-12 am-u-lg-2">
            <if condition="$v.finishtime lt $time && $v.finishtime neq 0">
                <span class="am-btn am-btn-default am-btn-sm">已过期</span>
                <else />
                <a href="<{:U('Cs/Index/Index',array('assignmentid'=>$v['id']))}>" class="am-btn am-btn-secondary am-btn-sm">去做题</a>
            </if>
        </div>
        <div class="am-show-md-down section-text am-panel-bd am-u-sm-12 am-u-lg-2">
            <if condition="$v.finishtime lt $time && $v.finishtime neq 0">
                <span class="am-btn am-btn-default am-btn-block am-btn-sm">已过期</span>
                <else />
                <a href="<{:U('Cs/Index/Index',array('assignmentid'=>$v['id']))}>" class="am-btn am-btn-secondary am-btn-block am-btn-sm">立刻做题</a>
            </if>
        </div>
    </section>
</foreach>